<?php
                    class T_ENTITY_TEMPLATE extends MikronBaseObject
                    {
                        private static $description = 'Шаблон сущности';
                        private static $fields = Array('entityname'=>array ( 'name' => 'entityname', 'type' => 'varchar(32)', 'description' => 'Имя сущности', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'entitycondition'=>array ( 'name' => 'entitycondition', 'type' => 'varchar(255)', 'description' => 'Условие', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(255)',),
      'template'=>array ( 'name' => 'template', 'type' => 'text', 'description' => 'Шаблон', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'formethod'=>array ( 'name' => 'formethod', 'type' => 'TEMPLATE_METHOD', 'description' => 'Имя метода', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_LOGRECORD extends MikronBaseObject
                    {
                        private static $description = 'Лог запись';
                        private static $fields = Array('category'=>array ( 'name' => 'category', 'type' => 'LOG_CATEGORY', 'description' => 'Категория', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'message'=>array ( 'name' => 'message', 'type' => 'text', 'description' => 'Сообщение', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_MENU extends MikronBaseObject
                    {
                        private static $description = 'Меню';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(64)', 'description' => 'Текст', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'link'=>array ( 'name' => 'link', 'type' => 'varchar(128)', 'description' => 'Ссылка', 'help' => 'Если пути, куда указывает ссылка не существует, то в качестве содержимого страницы будет выводиться текст из параметра «Содержимое страницы».', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'menugroup'=>array ( 'name' => 'menugroup', 'type' => 'MENU_GROUPS', 'description' => 'Группа', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'parentmenu'=>array ( 'name' => 'parentmenu', 'type' => 'T_MENU', 'description' => 'Вложено в меню', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'pagefor'=>array ( 'name' => 'pagefor', 'type' => 'PAGE_VISIBLE_FOR', 'description' => 'Кому видна страница', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'pagerole'=>array ( 'name' => 'pagerole', 'type' => 'T_ROLE', 'description' => 'Видна только обладателям роли', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'page'=>array ( 'name' => 'page', 'type' => 'html', 'description' => 'Содержимое страницы', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_VARIABLES extends MikronBaseObject
                    {
                        private static $description = 'Переменная';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(128)', 'description' => 'Заголовок', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'code'=>array ( 'name' => 'code', 'type' => 'varchar(64)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'UIDX_CODE', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'type'=>array ( 'name' => 'type', 'type' => 'DATATYPE', 'description' => 'Тип значения', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'textvalue'=>array ( 'name' => 'textvalue', 'type' => 'text', 'description' => 'Значение', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'state'=>array ( 'name' => 'state', 'type' => 'STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_PAGESETTINGS extends MikronBaseObject
                    {
                        private static $description = 'Шаблон';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(64)', 'description' => 'Заголовок', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'address'=>array ( 'name' => 'address', 'type' => 'varchar(128)', 'description' => 'Адрес', 'help' => 'Адрес, либо маска адреса, страниц, для которых будет применяться данный шаблон.', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'html'=>array ( 'name' => 'html', 'type' => 'text', 'description' => 'HTML-Шаблон', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_COUNTER extends MikronBaseObject
                    {
                        private static $description = 'Счетчик посещений';
                        private static $fields = Array('forumusername'=>array ( 'name' => 'forumusername', 'type' => 'varchar(64)', 'description' => 'Имя пользователя', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'ip'=>array ( 'name' => 'ip', 'type' => 'varchar(32)', 'description' => 'IP-адрес', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'page'=>array ( 'name' => 'page', 'type' => 'varchar(255)', 'description' => 'Посещенная страница', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(255)',),
      'referer'=>array ( 'name' => 'referer', 'type' => 'varchar(255)', 'description' => 'Реферер', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(255)',),
      'browser'=>array ( 'name' => 'browser', 'type' => 'varchar(255)', 'description' => 'Браузер', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(255)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_EMAILLOG extends MikronBaseObject
                    {
                        private static $description = 'Лог шедуллер';
                        private static $fields = Array('email'=>array ( 'name' => 'email', 'type' => 'varchar(64)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'datesend'=>array ( 'name' => 'datesend', 'type' => 'datetime', 'description' => 'Дата отчета', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class USER_PREFERENCES extends MikronBaseObject
                    {
                        private static $description = 'Настройки пользователей';
                        private static $fields = Array('tablerows'=>array ( 'name' => 'tablerows', 'type' => 'int', 'description' => 'Количество строк в таблицах админки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_USER extends MikronBaseObject
                    {
                        private static $description = 'Пользователь';
                        private static $fields = Array('login'=>array ( 'name' => 'login', 'type' => 'varchar(64)', 'description' => 'Логин', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'userunq', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'password'=>array ( 'name' => 'password', 'type' => 'password(64)', 'description' => 'Пароль', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'password', 'dbtype' => 'varchar(64)',),
      'contacts'=>array ( 'name' => 'contacts', 'type' => 'varchar(250)', 'description' => 'Контакты', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(250)',),
      'session'=>array ( 'name' => 'session', 'type' => 'int', 'description' => 'Сессия', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'email'=>array ( 'name' => 'email', 'type' => 'varchar(64)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'roles'=>array ( 'name' => 'roles', 'type' => 'T_USERS_ROLES', 'description' => 'Роли', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'user', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'preferences'=>array ( 'name' => 'preferences', 'type' => 'USER_PREFERENCES', 'description' => 'Настройки', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'lastvisittime'=>array ( 'name' => 'lastvisittime', 'type' => 'datetime', 'description' => 'Последний визит', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'activated'=>array ( 'name' => 'activated', 'type' => 'boolean', 'description' => 'Активирован', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата регистрации', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'usertype'=>array ( 'name' => 'usertype', 'type' => 'TOSMR_USER_GROUPS', 'description' => 'Тип пользователя', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'country'=>array ( 'name' => 'country', 'type' => 'COUNTRY', 'description' => 'Страна', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'city'=>array ( 'name' => 'city', 'type' => 'CITY', 'description' => 'Город', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'firmname'=>array ( 'name' => 'firmname', 'type' => 'varchar(32)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'information'=>array ( 'name' => 'information', 'type' => 'text', 'description' => 'Информация', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'phone'=>array ( 'name' => 'phone', 'type' => 'varchar(16)', 'description' => 'Телефон', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(16)',),
      'curator_fio'=>array ( 'name' => 'curator_fio', 'type' => 'varchar(64)', 'description' => 'ФИО', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'curator_post'=>array ( 'name' => 'curator_post', 'type' => 'varchar(128)', 'description' => 'Должность', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'curator_phone'=>array ( 'name' => 'curator_phone', 'type' => 'varchar(64)', 'description' => 'Телефон', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'curator_email'=>array ( 'name' => 'curator_email', 'type' => 'varchar(64)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'tenders'=>array ( 'name' => 'tenders', 'type' => 'TENDER', 'description' => 'Тендеры', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'user', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_ROLE extends MikronBaseObject
                    {
                        private static $description = 'Роль';
                        private static $fields = Array('name'=>array ( 'name' => 'name', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'code'=>array ( 'name' => 'code', 'type' => 'varchar(64)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_MODULE extends MikronBaseObject
                    {
                        private static $description = 'Модуль';
                        private static $fields = Array('code'=>array ( 'name' => 'code', 'type' => 'varchar(64)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'name'=>array ( 'name' => 'name', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'description'=>array ( 'name' => 'description', 'type' => 'varchar(128)', 'description' => 'Описание', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'installed'=>array ( 'name' => 'installed', 'type' => 'boolean', 'description' => 'Установлен', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'operations'=>array ( 'name' => 'operations', 'type' => 'T_OPERATION', 'description' => 'Операции', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'module', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'path'=>array ( 'name' => 'path', 'type' => 'varchar(128)', 'description' => 'Путь к файлу модуля', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'state'=>array ( 'name' => 'state', 'type' => 'STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_OPERATION extends MikronBaseObject
                    {
                        private static $description = 'Операция';
                        private static $fields = Array('name'=>array ( 'name' => 'name', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'code'=>array ( 'name' => 'code', 'type' => 'varchar(64)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'module'=>array ( 'name' => 'module', 'type' => 'T_MODULE', 'description' => 'Модуль', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_USERS_ROLES extends MikronBaseObject
                    {
                        private static $description = 'Связь пользователя и роли';
                        private static $fields = Array('role'=>array ( 'name' => 'role', 'type' => 'T_ROLE', 'description' => 'Роль', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'user_role', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'user_role', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'expired'=>array ( 'name' => 'expired', 'type' => 'datetime', 'description' => 'Действует до', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'state'=>array ( 'name' => 'state', 'type' => 'STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_ROLES_OPERATIONS extends MikronBaseObject
                    {
                        private static $description = 'Связь роли и операции';
                        private static $fields = Array('operation'=>array ( 'name' => 'operation', 'type' => 'T_OPERATION', 'description' => 'Операция', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'role'=>array ( 'name' => 'role', 'type' => 'T_ROLE', 'description' => 'Роль', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class TABCONTROL extends MikronBaseObject
                    {
                        private static $description = 'Панель с вкладками';
                        private static $fields = Array('code'=>array ( 'name' => 'code', 'type' => 'varchar(32)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'name'=>array ( 'name' => 'name', 'type' => 'varchar(32)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'tabs'=>array ( 'name' => 'tabs', 'type' => 'TAB_ITEM', 'description' => 'Вкладки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'tabcontrol', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'description'=>array ( 'name' => 'description', 'type' => 'varchar(200)', 'description' => 'Комментарий', 'help' => 'максимум 200 символов', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(200)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'style_active'=>array ( 'name' => 'style_active', 'type' => 'varchar(32)', 'description' => 'Класс активной вкладки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'style_inactive'=>array ( 'name' => 'style_inactive', 'type' => 'varchar(32)', 'description' => 'Класс неактивной вкладки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class TAB_ITEM extends MikronBaseObject
                    {
                        private static $description = 'Вкладка для панели';
                        private static $fields = Array('tabcontrol'=>array ( 'name' => 'tabcontrol', 'type' => 'TABCONTROL', 'description' => 'Панель', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'code'=>array ( 'name' => 'code', 'type' => 'varchar(32)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'name'=>array ( 'name' => 'name', 'type' => 'varchar(32)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'disabled'=>array ( 'name' => 'disabled', 'type' => 'boolean', 'description' => 'Выключен', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'link'=>array ( 'name' => 'link', 'type' => 'varchar(64)', 'description' => 'Ссылка', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'content'=>array ( 'name' => 'content', 'type' => 'text', 'description' => 'Содержимое вкладки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'description'=>array ( 'name' => 'description', 'type' => 'varchar(100)', 'description' => 'Комментарий', 'help' => 'максимум 100 символов', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(100)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_MESSAGE extends MikronBaseObject
                    {
                        private static $description = 'Сообщение';
                        private static $fields = Array('contacts'=>array ( 'name' => 'contacts', 'type' => 'varchar(64)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'answerto'=>array ( 'name' => 'answerto', 'type' => 'T_MESSAGE', 'description' => 'Ответ на письмо', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'message'=>array ( 'name' => 'message', 'type' => 'text', 'description' => 'Сообщение', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'answer'=>array ( 'name' => 'answer', 'type' => 'text', 'description' => 'Ответ', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Отправитель', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'recipient'=>array ( 'name' => 'recipient', 'type' => 'T_USER', 'description' => 'Кому', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'state'=>array ( 'name' => 'state', 'type' => 'STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class VOTING extends MikronBaseObject
                    {
                        private static $description = 'Голосование';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(32)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'code', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'choicetype'=>array ( 'name' => 'choicetype', 'type' => 'VOTING_CHOICE_TYPE', 'description' => 'Тип выбора ответов', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'question'=>array ( 'name' => 'question', 'type' => 'text', 'description' => 'Вопрос', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'choices'=>array ( 'name' => 'choices', 'type' => 'VOTING_CHOICE', 'description' => 'Пункты', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'voting', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class VOTING_CHOICE extends MikronBaseObject
                    {
                        private static $description = 'Пункт голосования';
                        private static $fields = Array('voting'=>array ( 'name' => 'voting', 'type' => 'VOTING', 'description' => 'Голосование', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'answer'=>array ( 'name' => 'answer', 'type' => 'varchar(128)', 'description' => 'Ответ', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'custom'=>array ( 'name' => 'custom', 'type' => 'boolean', 'description' => 'Предложить свой вариант', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class VOTING_RESULT extends MikronBaseObject
                    {
                        private static $description = 'Результат голосования';
                        private static $fields = Array('voting'=>array ( 'name' => 'voting', 'type' => 'VOTING', 'description' => 'Голосование', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'choice'=>array ( 'name' => 'choice', 'type' => 'VOTING_CHOICE', 'description' => 'Пункт', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'custom'=>array ( 'name' => 'custom', 'type' => 'varchar(128)', 'description' => 'Свой вариант ответа', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'phpsession'=>array ( 'name' => 'phpsession', 'type' => 'varchar(64)', 'description' => 'PHP-сессия', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'php:session()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class VOTING_NEW extends MikronBaseObject
                    {
                        private static $description = 'Форма быстрого создания голосования';
                        private static $fields = Array('code'=>array ( 'name' => 'code', 'type' => 'varchar(32)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'question'=>array ( 'name' => 'question', 'type' => 'varchar(128)', 'description' => 'Вопрос', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'choicetype'=>array ( 'name' => 'choicetype', 'type' => 'VOTING_CHOICE_TYPE', 'description' => 'Тип выбора ответов', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'choices'=>array ( 'name' => 'choices', 'type' => 'text', 'description' => 'Варианты ответов', 'help' => 'Каждая строчка будет выведена в виде отдельного варианта ответа. Знак вопроса в конце варианта будет означать запрос ввода произвольного текста анкетирующемуся.', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_REGINFO extends MikronBaseObject
                    {
                        private static $description = 'Регистрационная форма';
                        private static $fields = Array('login'=>array ( 'name' => 'login', 'type' => 'varchar(64)', 'description' => 'Логин', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 2, char: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'password'=>array ( 'name' => 'password', 'type' => 'password(64)', 'description' => 'Пароль', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 6, char: true', 'group' => NULL, 'editmode' => 'password', 'dbtype' => 'varchar(64)',),
      'email'=>array ( 'name' => 'email', 'type' => 'varchar(250)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'email: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(250)',),
      'lastname'=>array ( 'name' => 'lastname', 'type' => 'varchar(250)', 'description' => 'Фамилия', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 2, char: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(250)',),
      'firstname'=>array ( 'name' => 'firstname', 'type' => 'varchar(250)', 'description' => 'Имя', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 2, char: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(250)',),
      'fathername'=>array ( 'name' => 'fathername', 'type' => 'varchar(250)', 'description' => 'Отчество', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 2, char: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(250)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата регистрации', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class TASK extends MikronBaseObject
                    {
                        private static $description = 'Задача';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(128)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'author'=>array ( 'name' => 'author', 'type' => 'T_USER', 'description' => 'Автор', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'text'=>array ( 'name' => 'text', 'type' => 'text', 'description' => 'Описание', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'state'=>array ( 'name' => 'state', 'type' => 'TASK_STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class MIKRON_COMMENT extends MikronBaseObject
                    {
                        private static $description = 'Комментарий';
                        private static $fields = Array('entity'=>array ( 'name' => 'entity', 'type' => 'varchar(64)', 'description' => 'Сущность', 'help' => NULL, 'allownull' => false, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'entityid'=>array ( 'name' => 'entityid', 'type' => 'int', 'description' => 'ID-сущности', 'help' => NULL, 'allownull' => false, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'comment'=>array ( 'name' => 'comment', 'type' => 'text', 'description' => 'Текст', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength:2', 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'moderated'=>array ( 'name' => 'moderated', 'type' => 'boolean', 'description' => 'Промодерирован', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'author'=>array ( 'name' => 'author', 'type' => 'T_USER', 'description' => 'Автор', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class MIKRON_FAVOURITE extends MikronBaseObject
                    {
                        private static $description = 'Элемент из избранного';
                        private static $fields = Array('entity'=>array ( 'name' => 'entity', 'type' => 'varchar(64)', 'description' => 'Сущность', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'unqidx', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'entityid'=>array ( 'name' => 'entityid', 'type' => 'int', 'description' => 'Идентификатор сущности', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'unqidx', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'comments'=>array ( 'name' => 'comments', 'type' => 'text', 'description' => 'Комментарии', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Владелец', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'unqidx', 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class MIKRON_UPRATE extends MikronBaseObject
                    {
                        private static $description = 'Модификатор рейтинга';
                        private static $fields = Array('entity'=>array ( 'name' => 'entity', 'type' => 'varchar(64)', 'description' => 'Сущность', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'entityid'=>array ( 'name' => 'entityid', 'type' => 'int', 'description' => 'ID-сущности', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'comment'=>array ( 'name' => 'comment', 'type' => 'text', 'description' => 'Текст', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'moderated'=>array ( 'name' => 'moderated', 'type' => 'boolean', 'description' => 'Промодерирован', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'author'=>array ( 'name' => 'author', 'type' => 'T_USER', 'description' => 'Автор', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class TOSMR_ENTER_FORM extends MikronBaseObject
                    {
                        private static $description = 'Форма входа';
                        private static $fields = Array('login'=>array ( 'name' => 'login', 'type' => 'varchar(23)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'email: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(23)',),
      'password'=>array ( 'name' => 'password', 'type' => 'password', 'description' => 'Пароль', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 6', 'group' => NULL, 'editmode' => 'password', 'dbtype' => 'varchar(0)',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class CITY extends MikronBaseObject
                    {
                        private static $description = 'Город';
                        private static $fields = Array('region'=>array ( 'name' => 'region', 'type' => 'REGION', 'description' => 'Регион', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'country'=>array ( 'name' => 'country', 'type' => 'COUNTRY', 'description' => 'Страна', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'name'=>array ( 'name' => 'name', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class REGION extends MikronBaseObject
                    {
                        private static $description = 'Регион';
                        private static $fields = Array('country'=>array ( 'name' => 'country', 'type' => 'COUNTRY', 'description' => 'Страна', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'name'=>array ( 'name' => 'name', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class COUNTRY extends MikronBaseObject
                    {
                        private static $description = 'Страна';
                        private static $fields = Array('name'=>array ( 'name' => 'name', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class TENDER_VIEW extends MikronBaseObject
                    {
                        private static $description = 'Просмотр тендера';
                        private static $fields = Array('tender'=>array ( 'name' => 'tender', 'type' => 'TENDER', 'description' => 'Тендер', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время просмотра', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class TENDER_MESSAGE extends MikronBaseObject
                    {
                        private static $description = 'Сообщения тендера';
                        private static $fields = Array('tender'=>array ( 'name' => 'tender', 'type' => 'TENDER', 'description' => 'Тендер', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'message'=>array ( 'name' => 'message', 'type' => 'text', 'description' => 'Текст сообщения', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'readed'=>array ( 'name' => 'readed', 'type' => 'boolean', 'description' => 'Прочитан', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'answerto'=>array ( 'name' => 'answerto', 'type' => 'TENDER_MESSAGE', 'description' => 'Ответ на сообщение', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время просмотра', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class TENDER extends MikronBaseObject
                    {
                        private static $description = 'Тендер';
                        private static $fields = Array('user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'name'=>array ( 'name' => 'name', 'type' => 'varchar(128)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength:3', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'country'=>array ( 'name' => 'country', 'type' => 'COUNTRY', 'description' => 'Страна', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'city'=>array ( 'name' => 'city', 'type' => 'CITY', 'description' => 'Город', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => '', 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'curator'=>array ( 'name' => 'curator', 'type' => 'varchar(128)', 'description' => 'Куратор', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength:3', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'state'=>array ( 'name' => 'state', 'type' => 'TENDER_STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'messages'=>array ( 'name' => 'messages', 'type' => 'TENDER_MESSAGE', 'description' => 'Сообщения', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'tender', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'views'=>array ( 'name' => 'views', 'type' => 'TENDER_VIEW', 'description' => 'Просмотры', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'tender', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'description'=>array ( 'name' => 'description', 'type' => 'text', 'description' => 'Описание тендера', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength:10', 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'condition'=>array ( 'name' => 'condition', 'type' => 'text', 'description' => 'Условия тендера', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'required:true', 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?>